﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="AddServer.aspx.cs" Inherits="CocisWeb.ManageAsset.AddServer" %>
<%--<%@ Register src="../UserControl/PhysicalServerList.ascx" tagname="PhysicalServerList" tagprefix="uc1" %>--%>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<title></title>
<link href="../css/cont.css" rel="stylesheet" type="text/css" />
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
<script language="javascript" type="text/javascript" src="../datepicker/WdatePicker.js"></script>
<style type="text/css">
    .filter_label
    {
        text-align:right;
        width:15%;
    }
    .filter_input
    {
        text-align:left;
        width:35%;
    }
</style>
</head>

<body style="padding-left:5px;padding-right:5px;background-image:url(../images/bg_msn.gif);	background-repeat:repeat-x;">
 <form id="form1" runat="server">
   <asp:ScriptManager ID="ScriptManager1" runat="server">
</asp:ScriptManager>
    <asp:UpdatePanel ID="UpdatePanel1" runat="server">
            <ContentTemplate>

  <asp:Panel ID="selectPhysicalMachinePanel" runat="server"> 
    
     <table style="height:100%; width:100%;" border="0px" cellpadding="0px" cellspacing="0px">
        <tr style="background-image: url(../images/bg_header.gif); background-repeat: repeat-x; height:47px">
        <td style="width:10px;background-image: url(../images/main_hl.gif);"></td>
            <td>
                <span style="float: left; background-image: url(../images/main_hl2.gif); width: 15px; background-repeat: no-repeat; height: 47px"></span>
                <span style="padding-right: 10px; padding-left: 10px; float: left; background-image: url(../images/main_hb.gif); line-height:47px; color: white; background-repeat: repeat-x; height: 47px; text-align: center;">
                    Please select a physical machine for the new system node:</span>
                <span style="float: left; background-image: url(../images/main_hr.gif); width: 60px; background-repeat: no-repeat; height: 47px"></span>
            </td>
            <td style="background-image: url(../images/main_hr2.gif);width:10px"></td>
        </tr>

        <tr>
            <td style="background-image: url(../images/main_ls.gif)"></td>
            <td style="padding-right: 10px; padding-left: 10px; padding-bottom: 10px; color: #566984; padding-top:10px; background-color: white;">
            
                <div style=" width:100%">
                    <fieldset>
                        <legend></legend>
                        <table width="100%" style="background-image: url(../images/bg_msn.gif)">
                            <tr>
                    
                                <td class="filter_label">Server Type:</td>
                                <td class="filter_input"> 
                                    <asp:DropDownList Width="200px" ID="ServerTypeDropDownList" runat="server">
                                    </asp:DropDownList>
                                </td> 
                                <td class="filter_label">Status:</td>
                                <td class="filter_input">
                                    <asp:DropDownList Width="200px"  ID="StatusDropDownList" runat="server">
                                    </asp:DropDownList>
                                </td>  
                            </tr>
                            <tr>                    
                                <td class="filter_label">Warranty Start:</td>
                                <td class="filter_input"> 
                                    <asp:TextBox ID="txtWarrantyStartDate" Width="200px"  runat="server" class="Wdate" onFocus="WdatePicker({lang:'en'})"></asp:TextBox>
                                </td> 
                                <td class="filter_label">Warranty End:</td>
                                <td class="filter_input">
                                    <asp:TextBox ID="txtWarrantyEndDate" runat="server" Width="200px"  class="Wdate" onFocus="WdatePicker({lang:'en'})"></asp:TextBox>
                                </td>  
                            </tr>
                            <tr>                    
                                <td class="filter_label">Brand:</td>
                                <td class="filter_input"> 
                                    <asp:TextBox ID="BrandTextBox" Width="200px"  runat="server"></asp:TextBox>
                                </td> 
                                <td class="filter_label">iLOIP:</td>
                                <td class="filter_input">
                                    <asp:TextBox ID="iLOIPTextBox" Width="200px"  runat="server"></asp:TextBox>
                                </td>  
                            </tr>
                            <tr>
                                <td class="filter_label"> 
                                </td>
                                <td class="filter_input"> 
                                    <asp:Button ID="SearchButton" OnClick="SearchButton_Click" runat="server" Text="Search" />
                                </td>
                                <td class="filter_label"> 
                                </td>
                                <td class="filter_input"> 
                                </td>             
                            </tr>
                        </table>
                    </fieldset>
                </div>
                <div  style=" width:100%; "> 
                    <fieldset>
                        <legend>Results:</legend>
                        <div style=" width:100%; background-image: url(../images/bg_msn.gif)">
                            <asp:GridView Width="100%" ID="selectPhysicalMachineGridView"  runat="server" AutoGenerateColumns="false">
                                <Columns>
                                    <asp:BoundField HeaderText="PhysicalID" DataField="PhysicalID" /> 
                                    <asp:BoundField HeaderText="AssetNo" DataField="AssetNo" /> 
                                    <asp:BoundField HeaderText="UniqueNo" DataField="UniqueNo" /> 
                                    <asp:BoundField HeaderText="iLOIP" DataField="iLOIP" /> 
                                    <asp:BoundField HeaderText="WarrantyStartDate" DataField="WarrantyStartDate" /> 
                                    <asp:BoundField HeaderText="WarrantyEndDate" DataField="WarrantyEndDate" /> 
                                    <asp:BoundField HeaderText="Brand" DataField="Brand" />
                                    <asp:TemplateField HeaderText="">
                                        <ItemTemplate>
                                            <asp:Button ID="SelectButton" CommandName="Select" runat="server" Text="Select" />  
                                        </ItemTemplate>
                                    </asp:TemplateField>
                                </Columns>
                            </asp:GridView>  
                        </div>               
                    </fieldset>
                </div>
            </td>
        </tr>
    </table> 
  </asp:Panel> 

  <asp:Panel ID="editServerPanel"  Visible="false" runat="server">
    <table style="height:100%; width:100%;" border="0px" cellpadding="0px" cellspacing="0px">
        <tr style="background-image: url(../images/bg_header.gif); background-repeat: repeat-x; height:47px">
        <td style="width:10px;background-image: url(../images/main_hl.gif);"></td>
            <td>
                <span style="float: left; background-image: url(../images/main_hl2.gif); width: 15px; background-repeat: no-repeat; height: 47px"></span>
                <span style="padding-right: 10px; padding-left: 10px; float: left; background-image: url(../images/main_hb.gif); line-height:47px; color: white; background-repeat: repeat-x; height: 47px; text-align: center;">
                    新增Server信息(系统节点)</span>
                <span style="float: left; background-image: url(../images/main_hr.gif); width: 60px; background-repeat: no-repeat; height: 47px"></span>
            </td>
            <td style="background-image: url(../images/main_hr2.gif);width:10px"></td>
        </tr>

        <tr>
            <td style="background-image: url(../images/main_ls.gif)"></td>
            <td style="padding-right: 10px; padding-left: 10px; padding-bottom: 10px; color: #566984; padding-top:10px; background-color: white;">
            <table id="tablea" class="tableBorder" style="width:700px;" >
                <tr>
                    <td style="width:150px; text-align:right;">PhysicalID：</td>
                    <td style="text-align:left;" >
                        <asp:TextBox ID="txtPhysicalID" runat="server" Width="255px"></asp:TextBox>
                    </td>
                </tr>
                
                <tr>
                    <td style="width:150px; text-align:right;">ServerName：</td>
                    <td style="text-align:left;" >
                        <asp:TextBox ID="txtServerName" runat="server" Width="255px"></asp:TextBox>
                    </td>
                </tr>

                <tr>
                    <td style="width:150px; text-align:right;">Alias：</td>
                    <td style="text-align:left;" >
                        <asp:TextBox ID="txtAlias" runat="server" Width="255px"></asp:TextBox>
                    </td>
                </tr>

                <tr>
                    <td style="width:150px; text-align:right;">ServerIP：</td>
                    <td style="text-align:left;" >
                        <asp:TextBox ID="txtServerIP" runat="server" Width="255px"></asp:TextBox>
                    </td>
                </tr>

                <tr>
                    <td style="text-align:right;">Domain：</td>
                    <td style="text-align:left;" >
                        <asp:DropDownList ID="ddlDomain" Width="200px"  runat="server">
                        </asp:DropDownList>
                    </td>
                </tr>

                <tr>
                    <td style="text-align:right;">OSName：</td>
                    <td style="text-align:left;" >
                        <asp:DropDownList ID="ddlOSName" Width="200px"  runat="server">
                        </asp:DropDownList>
                    </td>
                </tr>

                <tr>
                    <td style="width:150px; text-align:right;">OSVersion：</td>
                    <td style="text-align:left;" >
                        <asp:TextBox ID="txtOSVersion" runat="server" Width="255px"></asp:TextBox>
                    </td>
                </tr>

                <tr>
                    <td style="text-align:right;">OSServicePack：</td>
                    <td style="text-align:left;" >
                        <asp:DropDownList ID="ddlOSServicePack" Width="200px"  runat="server">
                        </asp:DropDownList>
                    </td>
                </tr>

                <tr>
                    <td style="text-align:right;">Environment：</td>
                    <td style="text-align:left;" >
                        <asp:DropDownList ID="ddlEnvironment" Width="200px"  runat="server">
                        </asp:DropDownList>
                    </td>
                </tr>

                <tr>
                    <td style="width:150px; text-align:right;">CPU：</td>
                    <td style="text-align:left;" >
                        <asp:TextBox ID="txtCPU" runat="server" Width="255px"></asp:TextBox>
                    </td>
                </tr>

                <tr>
                    <td style="width:150px; text-align:right;">RAM：</td>
                    <td style="text-align:left;" >
                        <asp:TextBox ID="txtRAM" runat="server" Width="255px"></asp:TextBox>
                    </td>
                </tr>

                <tr>
                    <td style="width:150px; text-align:right;">HardDisk：</td>
                    <td style="text-align:left;" >
                        <asp:TextBox ID="txtHardDisk" runat="server" Width="255px"></asp:TextBox>
                    </td>
                </tr>

                <tr>
                    <td style="text-align:right;">Status：</td>
                    <td style="text-align:left;" >
                        <asp:DropDownList ID="ddlStatus" Width="200px"  runat="server">
                        </asp:DropDownList>
                    </td>
                </tr>

                <tr>
                    <td style="text-align:right;">ScomStatus：</td>
                    <td style="text-align:left;" >
                        <asp:DropDownList ID="ddlScomStatus" Width="200px" runat="server">
                        </asp:DropDownList>
                    </td>
                </tr>

                <tr>
                    <td style="text-align:right;">PatchStatus：</td>
                    <td style="text-align:left;" >
                        <asp:DropDownList ID="ddlPatchStatus" Width="200px"  runat="server">
                        </asp:DropDownList>
                    </td>
                </tr>

                <tr>
                    <td style="text-align:right;">CVCoverage：</td>
                    <td style="text-align:left;" >
                        <asp:DropDownList ID="ddlCVCoverage" Width="200px"  runat="server">
                        </asp:DropDownList>
                    </td>
                </tr>

                <tr>
                    <td style="width:150px; text-align:right;">AppCatalog：</td>
                    <td style="text-align:left;" >
                        <asp:TextBox ID="txtAppCatalog" runat="server" Width="255px"></asp:TextBox>
                    </td>
                </tr>

                <tr>
                    <td style="text-align:right;">HostingType：</td>
                    <td style="text-align:left;" >
                        <asp:DropDownList ID="ddlHostingType" Width="200px" runat="server">
                        </asp:DropDownList>
                    </td>
                </tr>

                <tr>
                    <td style="width:150px; text-align:right;">AppSupportTeam：</td>
                    <td style="text-align:left;" >
                        <asp:TextBox ID="txtAppSupportTeam" runat="server" Width="255px"></asp:TextBox>
                    </td>
                </tr>

                <tr>
                    <td style="text-align:right;">BU：</td>
                    <td style="text-align:left;" >
                        <asp:DropDownList ID="ddlBU" Width="200px" runat="server">
                        </asp:DropDownList>
                    </td>
                </tr>

                <tr>
                    <td style="width:150px; text-align:right;">BUdetails：</td>
                    <td style="text-align:left;" >
                        <asp:TextBox ID="txtBUdetails" runat="server" Width="255px"></asp:TextBox>
                    </td>
                </tr>

                <tr>
                    <td style="width:150px; text-align:right;">IfCluster：</td>
                    <td style="text-align:left;" >
                        <asp:TextBox ID="txtIfCluster" runat="server" Width="255px"></asp:TextBox>
                    </td>
                </tr>

                <tr>
                    <td style="text-align:right;">ServerType：</td>
                    <td style="text-align:left;" >
                        <asp:DropDownList ID="ddlServerType" Width="200px"  runat="server">
                        </asp:DropDownList>
                    </td>
                </tr>
  
                <tr>
                    <td style="text-align:right;">ClusterName：</td>
                    <td style="text-align:left;" >
                        <asp:DropDownList ID="ddlClusterName" Width="200px"  runat="server">
                        </asp:DropDownList>
                    </td>
                </tr>
  
                <tr>
                <td style="text-align:right;" >
                    Comments：</td>
                    <td style="text-align:left;" >
                        <asp:TextBox ID="txtComments" runat="server" Height="59px" TextMode="MultiLine" 
                            Width="422px"></asp:TextBox>
                    </td>
                </tr>
  
                <tr>
                    <td style="text-align:right;" >&nbsp;</td>
                    <td style="text-align:left;" >
                        <asp:Button ID="btnAdd" runat="server" Text="添 加" CssClass="button_normal" onclick="btnAdd_Click" />     
                        &nbsp;<input ID="btnReset" class="button_normal" type="reset" value="清 空" />
                    </td>
                </tr>
  
            </table>
            <br />
            </td>
            <td style="background-image: url(../images/main_rs.gif)"></td>
        </tr>
    </table>
  </asp:Panel>
  
    </ContentTemplate>
</asp:UpdatePanel>
  </form>
  
</body>
</html> 
